From: Rob Church Date: Mon, 16 Jan 2006 03:35:28 +0000 (+0000) Subject: * Minor cosmetic fixes to installer X-Git-Tag: 1.6.0~518 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=de243b1e3e58b2b825e36550a4be3b0b5d8e7c11;p=lhc%2Fweb%2Fwiklou.git * Minor cosmetic fixes to installer * Make Block::delete() return something, to be used in later alterations to the un/blocking interfaces --- diff --git a/config/index.php b/config/index.php index 449de55d85..af9a98e9ce 100644 --- a/config/index.php +++ b/config/index.php @@ -1,6 +1,7 @@ +# Copyright (C) 2004 Brion Vibber , 2006 Rob Church # http://www.mediawiki.org/ # # This program is free software; you can redistribute it and/or modify @@ -22,12 +23,27 @@ error_reporting( E_ALL ); header( "Content-type: text/html; charset=utf-8" ); @ini_set( "display_errors", true ); -?> +# Attempt to set up the include path, to fix problems with relative includes +$IP = dirname( dirname( __FILE__ ) ); +$sep = PATH_SEPARATOR; +if( !ini_set( "include_path", ".$sep$IP$sep$IP/includes$sep$IP/languages" ) ) { + set_include_path( ".$sep$IP$sep$IP/includes$sep$IP/languages" ); +} + +# Define an entry point and include some files +define( "MEDIAWIKI", true ); +define( "MEDIAWIKI_INSTALL", true ); +require_once( "includes/Defines.php" ); +require_once( "includes/DefaultSettings.php" ); +require_once( "includes/MagicWord.php" ); +require_once( "includes/Namespace.php" ); + +?> + - MediaWiki installation + MediaWiki <?php echo( $wgVersion ); ?> Installation